import Layout from '@/layout/index.vue'

const vehicle = {
  path: '/vehicle',
  component: Layout,
  redirect: '/car-models',
  meta: { title: '车辆管理', icon: 'transit' },
  children: [
    {
      path: '/car-models',
      name: '',
      component: () => import('@/views/vehicle/carModels/carModels.vue'),
      meta: { title: '车型管理' }
    },
    {
      path: '/vehicle-list',
      name: '',
      component: () => import('@/views/vehicle/vehicleList/vehicleList.vue'),
      meta: { title: '车辆列表' }
    },
    {
      path: '/vehicle-detail',
      name: '',
      component: () => import('@/views/vehicle/vehicleList/components/vehicleDetail/vehicleDetail.vue'),
      meta: { title: '车辆详情' },
      hidden: true
    },
    {
      path: '/car-register',
      name: '',
      component: () => import('@/views/vehicle/carRegister/carRegister.vue'),
      meta: { title: '回车登记' }
    },
    {
      path: '/show-reg',
      name: '',
      component: () => import('@/views/vehicle/carRegister/components/showReg.vue'),
      meta: { title: '回单查看' },
      hidden: true
    }
  ]
}

export default vehicle
